<!DOCTYPE html>
<html>
<head>
	<title>好友列表主窗口</title>
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<meta charset="utf-8">
	<link rel="stylesheet" href="../static/css/main.css">
	<script src="../static/js/vue.js"></script>
	<script src="../static/js/axios.js"></script>
	<script src="../static/js/main.js"></script>
	<script src="../static/js/uuid.js"></script>
</head>
<body>
	<div class="app user setting" id="app">
		<div class="bg">
      <img src="../static/images/friends_bg.png">
    </div>
		<img class="back" @click="back" src="../static/images/user_back.png" alt="">
		<div class="add_friend_btn" @click="add_friend">
			<img src="../static/images/add_friends.png" alt="">
		</div>
		<div class="friends_list">
    </div>
	</div>
	<script>
	apiready = function(){
    var game = new Game("../static/mp3/bg1.mp3");
    // 在 #app 标签下渲染一个按钮组件
    Vue.prototype.game = game;
		new Vue({
			el:"#app",
			data(){
				return {
          friends:[],
					prev:{name:"",url:"",params:{}},
					current:{name:"friends",url:"friends.html",params:{}},
				}
			},
			methods:{
        back(){
          this.game.closeFrame();
        },
        add_friend(){
          // 添加好友

        }
			}
		});
	}
	</script>
</body>
</html>
